Builder
Builder class for NotificationChannelCompat objects.
Constructors
Functions
Link copied to clipboard
Creates a NotificationChannelCompat instance.
Link copied to clipboard
open fun setConversationId(@NonNull parentChannelId: String, @NonNull conversationId: String): NotificationChannelCompat.Builder
Sets this channel as being conversation-centric.
Link copied to clipboard
Sets the user visible description of this channel.
Link copied to clipboard
Sets the level of interruption of this notification channel.
Link copied to clipboard
Sets the notification light color for notifications posted to this channel, if lights are enabled on this channel and the device supports that feature.
Link copied to clipboard
Sets whether notifications posted to this channel should display notification lights, on devices that support that feature.
Link copied to clipboard
Sets the user visible name of this channel.
Link copied to clipboard
Sets whether notifications posted to this channel can appear as application icon badges in a Launcher.
Link copied to clipboard
open fun setSound(@Nullable sound: Uri, @Nullable audioAttributes: AudioAttributes): NotificationChannelCompat.Builder
Sets the sound that should be played for notifications posted to this channel and its audio attributes.
Link copied to clipboard
Sets whether notification posted to this channel should vibrate.
Link copied to clipboard
open fun setVibrationPattern(@Nullable vibrationPattern: Array<Long>): NotificationChannelCompat.Builder
Sets the vibration pattern for notifications posted to this channel.